<div class="header-panel">
	<div class="site-wrap wrap">
		<div id="logo">
			<a href="${ctx}/">zzzzzz</a>
		</div>
		<shiro:authenticated>
			<ul class="horizontal nav-index index">
				<li>
					<c:choose>
						<c:when test="${cur == 'new_topic'}">
							<a href="${ctx}/topic/add" class="selected">New post</a>
						</c:when>
						<c:otherwise>
							<a href="${ctx}/topic/add">New post</a>
						</c:otherwise>
					</c:choose>
				</li>
			</ul>
		</shiro:authenticated>
		<ul class="horizontal user-index index">
			<shiro:authenticated>
				<li>
					<c:choose>
						<c:when test="${cur == 'dashboard'}">
							<a href="${ctx}/dashboard" class="selected">Home</a>
						</c:when>
						<c:otherwise>
							<a href="${ctx}/dashboard">Home</a>
						</c:otherwise>
					</c:choose>
				</li><li>
					<c:choose>
						<c:when test="${cur == 'profile'}">
							<a href="${ctx}/profile?id=${currentUser.userId}" class="selected">Profile</a>
						</c:when>
						<c:otherwise>
							<a href="${ctx}/profile?id=${currentUser.userId}">Profile</a>
						</c:otherwise>
					</c:choose>
				</li><shiro:hasRole name="administrator"><li>
					<c:choose>
						<c:when test="${cur == 'control_panel'}">
							<a href="${ctx}/control_panel" class="selected">Control Panel</a>
						</c:when>
						<c:otherwise>
							<a href="${ctx}/control_panel">Control Panel</a>
						</c:otherwise>
					</c:choose>
				</li></shiro:hasRole><li>
					<a href="#dropdown_link" class="">Your Account <span class="arrow arrow-down"></span></a>
					<ul class="vertical dropdown-index index" data-dom-id="dropdown-menu">
						<li><a href="${ctx}/account_settings">Account setting</a></li>
						<li><a href="${ctx}/help">Help</a></li>
						<li><a href="${ctx}/logout">Logout</a></li>
					</ul>
				</li>
			</shiro:authenticated>
			<shiro:notAuthenticated>
				<li>
					<c:choose>
						<c:when test="${cur == 'home'}">
							<a href="${ctx}/" class="selected">Home</a>
						</c:when>
						<c:otherwise>
							<a href="${ctx}/">Home</a>
						</c:otherwise>
					</c:choose>
				</li><li>
					<c:choose>
						<c:when test="${cur == 'login'}">
							<a href="${ctx}/login" class="selected">Login</a>
						</c:when>
						<c:otherwise>
							<a href="${ctx}/login">Login</a>
						</c:otherwise>
					</c:choose>
				</li><li>
					<c:choose>
						<c:when test="${cur == 'register'}">
							<a href="${ctx}/register" class="selected">Sign up</a>
						</c:when>
						<c:otherwise>
							<a href="${ctx}/register">Sign up</a>
						</c:otherwise>
					</c:choose>
				</li>
			</shiro:notAuthenticated>
		</ul>
	</div>
</div>
